<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品管理 － 编辑商品分类</title>
    <meta name="keywords" content="龙蛙商城">
    <meta name="description" content="龙蛙商城">

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form">
                        <input type="hidden" name="attrId" class="form-control" th:value="${goodsAttribute.attrId}" r>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">属性名称：</label>
                            <div class="col-sm-10">
                                <input type="text" name="attrName" class="form-control" th:value="${goodsAttribute.attrName}" required=""
                                       aria-required="true" maxlength="10" minlength="1">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">所属类型：</label>
                            <div class="col-sm-10">
                                <select class="form-control" id="typeId"  name="typeId">
                                    <option value="0">所属类型</option>
                                </select>
                            </div>
                        </div>
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-2 control-label">排序：</label>-->
<!--                            <div class="col-sm-10">-->
<!--                                <input type="number" th:value="${goodsAttribute.attrSort}"  name="attrSort" class="form-control" required=""-->
<!--                                       aria-required="true" minlength="1" maxlength="100000">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-2 control-label">多选/单选：</label>-->
<!--                            <div class="col-sm-10">-->
<!--                                <div class="radio radio-info radio-inline">-->
<!--                                    <input type="radio" value="1" id="isShowNavYes" th:checked="${goodsAttribute.attrType==0?'true':'false'}" name="attrType" checked="">-->
<!--                                    <label for="isShowNavYes"> 多选 </label>-->
<!--                                </div>-->
<!--                                <div class="radio radio-inline">-->
<!--                                    <input type="radio" value="0" id="isShowNavNo" th:checked="${goodsAttribute.attrType==0?'true':'false'}" name="attrType">-->
<!--                                    <label for="isShowNavNo"> 单选 </label>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->


                        <div class="form-group">
                            <label class="col-sm-2 control-label">可选值列表：</label>
                            <div class="col-sm-10">
                                <textarea type="text" style="height:300px" name="attrValues"  class="form-control" th:text="${goodsAttribute.attrValues}" required=""/>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <button id="submitUpdate" class="btn btn-primary col-sm-1">保存</button>
                            <div class="col-sm-2"></div>
                            <div class="col-sm-2"></div>
                            <button type="reset" class="btn btn-primary col-sm-1">重置</button>
                            <div class="col-sm-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    goodsTypeIdChecked = [[${goodsAttribute.typeId}]];
</script>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script th:inline="javascript" src="/web/js/self/goods_attrbute_update.js?v=1.0"></script>

</body>
</html>
